x86/cpu: Rework Intel masking/faulting setup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 31 Jul 2015 19:38:13 +0000 (20:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:31 +0000 (21:54 +0100)
commit3c66c8b048fd68cb6c255f8ab0efc4da06720867
tree69529885f3786a1dea95ae6f7cea5e1e8253304d
parent3ec93586b32d27d7787205ec72eb0f7b7e0a0d03
x86/cpu: Rework Intel masking/faulting setup

This patch is best reviewed as its end result rather than as a diff, as it
rewrites almost all of the setup.

On the BSP, cpuid information is used to evaluate the potential available set
of masking MSRs, and they are unconditionally probed, filling in the
availability information and hardware defaults.  A side effect of this is that
probe_intel_cpuid_faulting() can move to being __init.

The command line parameters are then combined with the hardware defaults to
further restrict the Xen default masking level.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/cpu/intel.c